package com.hnkywl.sts.action.sys;

import com.hnkywl.sts.service.sys.DsgdService;
import net.ruixin.web.struts2.SimpleActionSupport;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 菜单Action类
 * User: Administrator
 * Date: 13-3-9
 * Time: 下午4:09
 * To change this template use File | Settings | File Templates.
 */
@Namespace("/sys/dsgd")
public class DsgdAction extends SimpleActionSupport {
    private DsgdService dsgdService;


    @Action("dsgdList")
    public void dsgdList() {
        renderJson(dsgdService.getCggsFromKh());
    }

    @Autowired
    public void setDsgdService(DsgdService dsgdService) {
        this.dsgdService = dsgdService;
    }
}
